package com.nefu.editor.core.mapper;

import com.nefu.editor.core.mapper.provider.NoticeProvider;
import com.nefu.editor.core.model.Notice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.SelectProvider;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author chenchenT
 * @date : 18-11-16
 * @since : java 8
 */
@Mapper
@Repository
public interface NoticeMapper {

    /**
     * 获取用户通知
     *
     * @param notice
     * @return List<Notice>
     */
    @SelectProvider(type = NoticeProvider.class, method = "selectNoticeByCondition")
    List<Notice> selectNoticeByCondition(Notice notice);

}
